<?php
session_start();
include "config/koneksi.php";
include "config/library.php";

$post_nama = $_POST[nama_lengkap];
$post_message = $_POST[message];
	
    $sql = mysql_query("INSERT INTO komentar(komentator,nama_komentar,isi_komentar,id_berita,waktu) 
                        VALUES('$_SESSION[username]','$post_nama','$post_message','$_POST[id]','$waktu')");

    echo "<meta http-equiv='refresh' content='0; url=berita-$_POST[id].html'>";
?>
